home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / XML Utilities / Professional Programmer XSL IDE / Xselerator25.msi / Data.Cab / F38268_testScanl.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2002-03-16  |  1.2 KB  |  43 lines

  1. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  2. xmlns:msxsl="urn:schemas-microsoft-com:xslt"
  3. xmlns:myAdd="f:myAdd"
  4. xmlns:myParam="f:myParam"
  5. >
  6.   <xsl:import href="scanlDVC.xsl"/>
  7.   
  8.   <!-- To be applied on numList.xml -->
  9.   <xsl:output omit-xml-declaration="yes" indent="yes"/>
  10.  
  11.   <myAdd:myAdd/>
  12.   
  13.   <myParam:myParam>0</myParam:myParam>
  14.   
  15.   <xsl:template match="/">
  16.    
  17.     <xsl:variable name="vFun" select="document('')/*/myAdd:*[1]"/>
  18.     <xsl:variable name="vZero" select="document('')/*/myParam:*[1]"/>
  19.  
  20.     
  21.     <xsl:call-template name="scanl">
  22.       <xsl:with-param name="pFun" select="$vFun"/>
  23.       <xsl:with-param name="pQ0" select="$vZero" />
  24.       <xsl:with-param name="pList" select="/*/num"/>
  25.     </xsl:call-template>
  26.     
  27.     - - - - - - - - - - -
  28.     
  29.      <xsl:call-template name="scanl1">
  30.       <xsl:with-param name="pFun" select="$vFun"/>
  31.       <xsl:with-param name="pList" select="/*/num"/>
  32.     </xsl:call-template>
  33.     
  34.   </xsl:template>
  35.   
  36.   <xsl:template match="myAdd:*">
  37.     <xsl:param name="pArg1" select="0"/>
  38.     <xsl:param name="pArg2" select="0"/>
  39.   
  40.     <xsl:value-of select="$pArg1 + $pArg2"/>
  41.   </xsl:template>
  42.   
  43. </xsl:stylesheet>